package cs.game.util;

import java.awt.image.BufferedImage;
import java.util.Random;

import cs1.game.main.Game;

public class Enemy extends Flyer{
	public Enemy(BufferedImage image,Integer x,Integer y) {
		this.image=image;
		this.x=x;
		this.y=y;
		this.Weidth=image.getWidth();
		this.Height =image.getHeight();
		this.speed= new Random().nextInt(10)+20;
	}
	@Override
	public void stepMove() {
		this.y+=speed;
	}

	@Override
	public boolean OutOfBounds() {
	boolean result=false;
	if(this.y>Game.bgHeigh){
		result=true;
	}
		return result;
	}

}
